
using Ke.Bee.Shared.Abstractions;
using Ke.Bee.Shared.Impl;
using Ke.Bee.Transcription.Abstractions;
using Ke.Bee.Transcription.Impl;

namespace Ke.Paraleet.Hosts.Extensions;

/// <summary>
/// 注册服务
/// </summary>
public static class RegistionServiceExtensions
{
    public static IServiceCollection Register(this IServiceCollection services)
    {
        services.AddSingleton<ITranscriptionService, TranscriptionService>();
        services.AddSingleton<IAudioExtractor, FFmpegAudioExtractor>();
        services.AddSingleton<IAudioFormatChecker, FFprobeAudioFormatChecker>();
        services.AddScoped<IFileStorageService, FileStorageService>();
        //services.AddScoped<ITranscriptionService, TranscriptionService>();
        //services.AddScoped<INotificationService, NotificationService>();
        //services.AddHttpClient<INotificationService, NotificationService>();
        return services;
    }
}